package com.weakteam.mobile.minimum.fragment;

import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import com.weakteam.mobile.minimum.R;
import com.weakteam.mobile.minimum.activity.Main;

/**
 * Created by Nail on 04.12.2014.
 */
public class MenuNavigationScreen extends Fragment {

    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return inflater.inflate(R.layout.fragment_menu_navigation, null);
    }


    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);

        final Main main = (Main)this.getActivity();

        final LinearLayout profileButton = (LinearLayout)getActivity().findViewById(R.id.profileButton);
        profileButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                main.setProfile();
            }
        });
    }

    public void onResume() {
        super.onResume();
    }

}